<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <link rel="icon" href="/static/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/static/css/photon.css">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>AWESOME - /b/ - Бред</title>
</head>
<body>
    <table width="100%" cellspacing="0" id="index-table">
        <tr>
            <td id="leftcolumn">
                Общее:
                <br>
                <a href="/">На главную</a>
            </td>
            <td id="rightcolumn">
                <form enctype="multipart/form-data" action="" method="POST">
                    {% csrf_token %}
                    <p id="text-to-center">
                    Имя: {{ form.author_name }}
                    <br>
                    e-mail: {{ form.author_email }}
                    <br>
                    Тема: {{ form.post_subject }}
                    <br>
                    Сообщение:
                    <br>
                    {{ form.post_body }}
                    <br>
                    {{ form.image }}
                    <input type="submit" value="Submit"/>
                    </p>
                </form>
                <hr>
                <div id="rules-to-center" align=”center”>
                    <b>Правила доски:</b>
                    <ul>
                        <li>Запрещено размещение детской порнографии.</li>
                    </ul>
                </div>
                <hr>
                {% for post_yoba in posts %}
                    <b>{{ post_yoba.post_subject }}</b> {{ post_yoba.author_name }} <b>№{{ post_yoba.post_id }}</b> [<a href="reply?to={{ post_yoba.post_id }}">Ответ</a>]
                    <br>
                    <br>
                    <img src="{{ MEDIA_URL }}{{ post_yoba.image }}" alt="a"> {{ post_yoba.post_body }}
                    <br>
                    <hr>
                    <br>
                {% endfor %}
            </td>
        </tr>
    </table>
    <div class="pagination">
    <span class="step-links">
        {% if posts.has_previous %}
            <a href="?page={{ posts.previous_page_number }}">Назад</a>
        {% endif %}

        <span class="current">
            Page {{ posts.number }} of {{ posts.paginator.num_pages }}.
        </span>

        {% if posts.has_next %}
            <a href="?page={{ posts.next_page_number }}">Вперед</a>
        {% endif %}
    </span>
    </div>
</body>
</html>